package com.powernode.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @create: 2024/7/24
 * @author: gyhe10
 * @description: 阿里云短信服务参数配置类
 **/

@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@ConfigurationProperties(prefix = "aliyun.sms")
@RefreshScope
public class AliyunSmsConfig {

    /**
     * 阿里云服务秘钥id
     */
    private String accessKeyId;

    /**
     * 阿里云服务秘钥
     */
    private String accessKeySecret;

    /**
     * 阿里云短信服务地址
     */
    private String endpoint;

    /**
     * 短信签名
     */
    private String signName;

    /**
     * 短信模板
     */
    private String templateCode;
}
